import request from "@/utils/request";

export function login(loginId, password) {
   return request({
      url: "/loginUser/login.do",
      method: "get",
      params: {
         loginId: loginId,
         password: password
      }
   });
}


export function getInfo() {
    return request.get("info.do");
}

export function updatePassword(data) {
    return request.postData("/loginUser/updatePassword.do", data);
}

export function logout() {
    return request.postData({
        url: "/user/logout",
    });
}
